<?php

namespace app\api\validate\user;

use think\Validate;

class UserMusicApplyVal extends Validate
{
    public $rule=[
        'user_id'=>'require',
        'type'=>'require',
        'title'=>'require',
        'price'=>'require',
        'img'=>'require',
        'url'=>'require',
    ];
    public $message=[
        'user_id.require'=>'请确认用户',
        'type.require'=>'请选择类型',
        'title.require'=>'请输入标题',
        'price.require'=>'请输入金额',
        'img.require'=>'请上传封面图',
        'url.require'=>'请上传文件',
    ];
    public $scene=[
        'create'=>['user_id','type','title','price','img','url'],
        'update'=>['id','user_id','type','title','price','img','url'],
    ];
}